package org.smile.day04;

import java.util.ArrayList;

public class Application {
    public static void main(String[] args){
        Human tim = new Human();
//        tim.breathe();
//        tim.move();

        Dog dogee = new Dog();
//        dogee.breathe();
//        dogee.move();

        Fish f1 = new Fish();
        f1.move();
        f1.breathe();

        Animal a1 = new Human();
        a1 = tim;
//        a1.attack();
//        tim.think();
//        a1 = new Dog();
//        a1 = new Fish();


//        tim.move();
//        f1.move();
//        a1.move();

//        tim.attack();

        Enviromnet enviromnet = new Enviromnet();
//        enviromnet.show(f1);

//        dogee.attack();
//        a1.attack();


        Behaviour behaviour = tim;
//        behaviour.attack();

        Robot wali = new Robot();
//        behaviour.attack();
//        behaviour.attack();

//        Cat cat1 = new Cat();


        ArrayList<Behaviour> behaviours = new ArrayList<>();
        behaviours.add(tim);
        behaviours.add(wali);

        for (Behaviour behaviour1 : behaviours){
            enviromnet.attack(behaviour1);
        }

    }
}
